package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.NbzzBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface NbzzService extends BaseService<NbzzBean> {

	NbzzBean getNbzzBeanById(String id) throws Exception;
	
	void removeNbzzBeanById(String id) throws Exception;
	
	void removeNbzzBeanByIds(String ids) throws Exception;
	
	NbzzBean saveNbzzBean(NbzzBean crm) throws Exception;
	
	NbzzBean updateNbzzBean(NbzzBean crm) throws Exception;
	
	Page<NbzzBean>  findNbzzBeanByCond(NbzzBean bean,
			Page<NbzzBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveNbzzBeanExt(String sql) throws Exception;

	String findNbzzBeanExtCreate(String tableName) throws Exception;

	String findNbzzBeanExtEdit(String tableName, String id)
			throws Exception;

	String findNbzzBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasNbzzBeanExtData(String tableName, String id)
			throws Exception;
}